package sessionbeans;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;

import javax.ejb.Singleton;

@Singleton
public class ChatBean {
	private Set<String> salas = new HashSet<String>();

	public void criaSala(String sala) {
		this.salas.add(sala);
	}
	
	public void removeSala(String sala){
		this.salas.remove(sala);
	}

	public ArrayList<String> listaSalas() {
		return new ArrayList<String>(this.salas);
	}
}
